package pe.com.gintelligence.beanInterface;

import java.util.List;

import pe.com.gintelligence.bean.Funcionalidadmenu;

/**
 * Interface for FuncionalidadmenuDAO.
 * 
 * @author MyEclipse Persistence Tools
 */

public interface IFuncionalidadmenuDAO {
	/**
	 * Perform an initial save of a previously unsaved Funcionalidadmenu entity.
	 * All subsequent persist actions of this entity should use the #update()
	 * method. This operation must be performed within the a database
	 * transaction context for the entity's data to be permanently saved to the
	 * persistence store, i.e., database. This method uses the
	 * {@link javax.persistence.EntityManager#persist(Object) EntityManager#persist}
	 * operation.
	 * 
	 * <pre>
	 * EntityManagerHelper.beginTransaction();
	 * IFuncionalidadmenuDAO.save(entity);
	 * EntityManagerHelper.commit();
	 * </pre>
	 * 
	 * @param entity
	 *            Funcionalidadmenu entity to persist
	 * @throws RuntimeException
	 *             when the operation fails
	 */
	public void save(Funcionalidadmenu entity);

	/**
	 * Delete a persistent Funcionalidadmenu entity. This operation must be
	 * performed within the a database transaction context for the entity's data
	 * to be permanently deleted from the persistence store, i.e., database.
	 * This method uses the
	 * {@link javax.persistence.EntityManager#remove(Object) EntityManager#delete}
	 * operation.
	 * 
	 * <pre>
	 * EntityManagerHelper.beginTransaction();
	 * IFuncionalidadmenuDAO.delete(entity);
	 * EntityManagerHelper.commit();
	 * entity = null;
	 * </pre>
	 * 
	 * @param entity
	 *            Funcionalidadmenu entity to delete
	 * @throws RuntimeException
	 *             when the operation fails
	 */
	public void delete(Funcionalidadmenu entity);

	/**
	 * Persist a previously saved Funcionalidadmenu entity and return it or a
	 * copy of it to the sender. A copy of the Funcionalidadmenu entity
	 * parameter is returned when the JPA persistence mechanism has not
	 * previously been tracking the updated entity. This operation must be
	 * performed within the a database transaction context for the entity's data
	 * to be permanently saved to the persistence store, i.e., database. This
	 * method uses the
	 * {@link javax.persistence.EntityManager#merge(Object) EntityManager#merge}
	 * operation.
	 * 
	 * <pre>
	 * EntityManagerHelper.beginTransaction();
	 * entity = IFuncionalidadmenuDAO.update(entity);
	 * EntityManagerHelper.commit();
	 * </pre>
	 * 
	 * @param entity
	 *            Funcionalidadmenu entity to update
	 * @return Funcionalidadmenu the persisted Funcionalidadmenu entity
	 *         instance, may not be the same
	 * @throws RuntimeException
	 *             if the operation fails
	 */
	public Funcionalidadmenu update(Funcionalidadmenu entity);

	public Funcionalidadmenu findById(Integer id);

	/**
	 * Find all Funcionalidadmenu entities with a specific property value.
	 * 
	 * @param propertyName
	 *            the name of the Funcionalidadmenu property to query
	 * @param value
	 *            the property value to match
	 * @return List<Funcionalidadmenu> found by query
	 */
	public List<Funcionalidadmenu> findByProperty(String propertyName,
			Object value);

	public List<Funcionalidadmenu> findByFkMenu(Object fkMenu);

	public List<Funcionalidadmenu> findByFkFuncionalidad(Object fkFuncionalidad);

	/**
	 * Find all Funcionalidadmenu entities.
	 * 
	 * @return List<Funcionalidadmenu> all Funcionalidadmenu entities
	 */
	public List<Funcionalidadmenu> findAll();
}